#include <iostream.h>
int main() {
   unsigned long long n1, n2, r;
   while( cin >> n1 >> n2 ) {
      if( n1 < n2 ) {
         r = n2 - n1;
      } else {
         r = n1 - n2;
      }
      cout << r << endl;
   }
}